﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PMS
{
    public partial class DepotForm : Form
    {
        public DepotForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Model.Depot dep = new PMS.Model.Depot();
            dep.Id = 0;
            dep.DepotName = txt_name.Text;
            BLL.Depot depbll = new PMS.BLL.Depot();
            if ( depbll.Insert(dep) )
            {
                MessageBox.Show("添加成功!");
            }
            else
            {
                MessageBox.Show("添加失败!");
            }
        }
    }
}
